<?php

namespace app\hook;


/**
 * 售后行为
 */
class aftersale
{

    // 售后单拒绝退款
    public function refuse(&$params) {

    }

    // 售后单完成
    public function finish(&$params) {
//        $aftersale = $params['aftersale'];
//        $order = $params['order'];
//        $aftersaleLog = $params['aftersaleLog'];

        // 通知用户售后处理过程
//        $user = \memberModel::where('id', $aftersale['member_id'])->first();
//        $user && $user->notify(
//            new \addons\shopro\notifications\Aftersale([
//                'aftersale' => $aftersale,
//                'order' => $order,
//                'aftersaleLog' => $aftersaleLog,
//                'event' => 'aftersale_change'
//            ])
//        );
        
    }

}
